package com.dc.designPattern._20_state.impl;

/**
 * Description: 状态模式_客户端
 * @author: gdc
 * @date: 2021/6/9
 * @version 1.0
 */
public class Client {

    public static void main(String[] args){
        // 创建活动对象
        RaffleActivity activity = new RaffleActivity(1);

        for (int i = 1; i <= 30; i++) {
            System.out.println("----第" + i + "次抽奖----");
            // step 1 扣除积分
            activity.debuctMoney();

            // step 2 抽奖
            activity.raffle();
        }
    }
}
